<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Silicon Flow AI Assistant</title>
  <link rel="stylesheet" href="popup.css">
</head>
<body>
  <div class="container">
    <div class="header">
      <h1>Silicon Flow AI Assistant</h1>
      <div class="model-selection">
        <label for="modelSelect">模型:</label>
        <select id="modelSelect">
          <option value="deepseek-ai/DeepSeek-V2.5">DeepSeek-V2.5</option>
          <option value="Qwen/Qwen2.5-Coder-7B-Instruct">免费-Qwen2.5-Coder-7B</option>
          <option value="Qwen/Qwen3-Coder-30B-A3B-Instruct">¥2.8-Qwen3-Coder-30B</option>
          <option value="deepseek-ai/DeepSeek-V3.1-Terminus">DeepSeek-V3.1-Terminus</option>
          <option value="deepseek-ai/DeepSeek-R1">DeepSeek-R1</option>
          <option value="deepseek-ai/DeepSeek-V3">DeepSeek-V3</option>
        </select>
      </div>
    </div>
    
    <div class="input-section">
      <textarea id="inputText" placeholder="请输入要处理的文本..."></textarea>
      
      <div class="custom-instruction">
        <label class="custom-instruction-label">自定义指令：</label>
        <textarea id="customInstruction" placeholder="例如：翻译成日语、提取关键信息等"></textarea>
        <div class="custom-instruction-help" title="在此输入您希望对上面文本进行的具体操作">?</div>
      </div>
      
      <div class="button-group">
        <button id="translateBtn" class="operation-btn" title="中英互译">翻译</button>
        <button id="summarizeBtn" class="operation-btn" title="总结要点">总结</button>
        <button id="explainBtn" class="operation-btn" title="详细解释">解释</button>
        <button id="customBtn" class="operation-btn" title="自定义处理">自定义</button>
      </div>
    </div>
    
    <div class="output-section">
      <div class="output-header">
        <h2>结果</h2>
        <div class="status-controls">
          <div class="status" id="status"></div>
          <button id="stopBtn" class="stop-btn" style="display: none;">中止</button>
        </div>
      </div>
      <div id="outputText" class="output-text"></div>
    </div>
  </div>
  
  <script src="popup.js"></script>
</body>
</html>